def METHOD_NAME(username: str, password: str, secret_name: str):
    """Creates a secret with name 'secret_name' with 'username' and 'password' as data in given namespace. The secret has an ownerReference to the pod this container is running in.
    :param username: base64 encoded string representing the desired value of the 'username' field in the secret
    :param password: base64 encoded string representing the desired value of the 'password' field in the secret
    :param secret_name: Name of the newly created secret
    """
    config.load_incluster_config()
    v1 = client.CoreV1Api()
    namespace = get_namespace()
    pod_name = get_pod_name()
    pod = v1.read_namespaced_pod(name=pod_name, namespace=namespace)
    secret_data = {'username': username, 'password': password}
    owner_references = client.V1OwnerReference(api_version='v1', name=pod_name, uid=pod.metadata.uid, kind='Pod')
    metadata = client.V1ObjectMeta(name=secret_name, namespace=namespace, owner_references=[owner_references])
    secret_body = client.V1Secret(api_version='v1', kind='Secret', metadata=metadata, data=secret_data, type='Opaque')
    v1.create_namespaced_secret(namespace=namespace, body=secret_body)