# Import json methods
import json

# Import Hashlib
import hashlib


def create_hash(data: object):
    if data is None:
        raise SyntaxError('Parameter data cannot be null')

    if isinstance(data, (str, int)):
        return hashlib.md5(
            data.encode('utf-8')
        ).hexdigest()

    if isinstance(data, (list, dict)):
        return hashlib.md5(
            json.dumps(data).encode('utf-8')
        ).hexdigest()

    raise SyntaxError('Data type cannot be hashed')

6b49acb465bfdba0c0bcaa11be09c276080d6173
<mask token>

<mask token>


def create_hash(data: object):
    if data is None:
        raise SyntaxError('Parameter data cannot be null')
    if isinstance(data, (str, int)):
        return hashlib.md5(data.encode('utf-8')).hexdigest()
    if isinstance(data, (list, dict)):
        return hashlib.md5(json.dumps(data).encode('utf-8')).hexdigest()
    raise SyntaxError('Data type cannot be hashed')

import json
import hashlib


def create_hash(data: object):
    if data is None:
        raise SyntaxError('Parameter data cannot be null')
    if isinstance(data, (str, int)):
        return hashlib.md5(data.encode('utf-8')).hexdigest()
    if isinstance(data, (list, dict)):
        return hashlib.md5(json.dumps(data).encode('utf-8')).hexdigest()
    raise SyntaxError('Data type cannot be hashed')

# Import json methods
import json

# Import Hashlib
import hashlib


def create_hash(data: object):
    if data is None:
        raise SyntaxError('Parameter data cannot be null')

    if isinstance(data, (str, int)):
        return hashlib.md5(
            data.encode('utf-8')
        ).hexdigest()

    if isinstance(data, (list, dict)):
        return hashlib.md5(
            json.dumps(data).encode('utf-8')
        ).hexdigest()

    raise SyntaxError('Data type cannot be hashed')
