I have a function that takes *arg and an additional positional argument. but when calling this function I am getting below error. Any help how to pass this additional argument
**error**:
export_bundle() missing 1 required keyword-only argument: 'dict'
from stix2 import MemoryStore, Identity
import datetime
timestamp = datetime.datetime.today().strftime('%Y-%m-%d-%H:%M:%S')
id1 = Identity(
name="John Smith",
identity_class="individual",
description="Just some guy",
)
id2 = Identity(
name="John Smith",
identity_class="individual",
description="A person",
)
dict= {"id":1234, "name":"abd"}
def export_bundle(self, *args, dict):
mem = MemoryStore()
for sdo in args:
mem.add([sdo])
mem.save_to_file(self.output_location + str(dict['id']) + timestamp+ '.json')
del mem
export_bundle(id1, id2, dict)
*args.